import { request } from "./utils";

export function getSalesVolume(dateType, date) {
  return request({
    url: "/hotel/report/salesVolume",
    method: "get",
    params: {
      dateType,
      date
    }
  });
}
export function getTurnover(dateType, date) {
  return request({
    url: "/hotel/report/turnover",
    method: "get",
    params: {
      dateType,
      date
    }
  });
}
export function getPercentageOfTurnover(dateType, date) {
  return request({
    url: "/hotel/report/percentageOfTurnover",
    method: "get",
    params: {
      dateType,
      date
    }
  });
}
export function getTodayTurnover(date) {
  return request({
    url: "/hotel/report/todayTurnover",
    method: "get",
    params: {
      date
    }
  });
}
export function getTotalTurnover() {
  return request({
    url: "/hotel/report/totalTurnover",
    method: "get"
  });
}
export function exportReport() {
  return request({
    url: "/hotel/report/export",
    method: "get",
    responseType: "blob" // 明确要求返回Blob类型数据
  });
}
